#!/bin/sh
num_threads="1 2 4 8 16 32"
rand_seeds="5000"
for j in ${rand_seeds}
do
	
	for i in ${num_threads}
	do
		mkdir -p ../res/${j}/mpi/${i}
		echo randseed:${j}, cpu:${i}
		rm -f ../res/${j}/mpi/${i}/${i}.mpi.txt
		mpirun -np ${i} -stdout ../res/${j}/mpi/${i}/${i}.mpi.txt -timeout 10 ../kw/mpi/Release/nfamin_kw_mpi kw.ini $i ../res/${j}/mpi/${i}
	done
done

